/**
 * Project Name:wuservice-spring-boot-starter
 * File Name:DruidDataSourceProperties.java
 * Package Name:com.wu.common.config
 * Date:2017年2月23日上午11:41:10
 * Copyright (c) 2017, worldunion All Rights Reserved.
 *
 */

package com.dz.mybatis;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * ClassName: DruidDataSourceProperties <br/>
 * Function: TODO ADD FUNCTION. <br/>
 * Reason: TODO ADD REASON(可选). <br/>
 * date: 2017年2月23日 上午11:41:10 <br/>
 *
 * @author yexx
 * @version
 * 
 */
@ConfigurationProperties(prefix = "druid")
public class DruidDataSourceProperties {

	private int initialSize = 1;
	private int maxActive = 10;
	private int minIdle = 5;
	private int maxIdle = 10;
	private int maxWait = 60000;
	private boolean removeAbandoned = true;
	private int removeAbandonedTimeout = 600;
	private int timeBetweenEvictionRunsMillis = 60000;
	private int minEvictableIdleTimeMillis = 300000;
	private String validationQuery = "SELECT 1";
	private boolean testWhileIdle = true;
	private boolean testOnBorrow = true;
	private boolean testOnReturn = false;
	private boolean poolPreparedStatements = true;
	private int maxPoolPreparedStatementPerConnectionSize = 50;
	private String filters = "stat,slf4j";
	/**
	 * initialSize.
	 *
	 * @return  the initialSize
	 * 
	 */
	public int getInitialSize() {
		return initialSize;
	}
	/**
	 * initialSize.
	 *
	 * @param   initialSize    the initialSize to set
	 * 
	 */
	public void setInitialSize(int initialSize) {
		this.initialSize = initialSize;
	}
	/**
	 * maxActive.
	 *
	 * @return  the maxActive
	 * 
	 */
	public int getMaxActive() {
		return maxActive;
	}
	/**
	 * maxActive.
	 *
	 * @param   maxActive    the maxActive to set
	 * 
	 */
	public void setMaxActive(int maxActive) {
		this.maxActive = maxActive;
	}
	/**
	 * minIdle.
	 *
	 * @return  the minIdle
	 * 
	 */
	public int getMinIdle() {
		return minIdle;
	}
	/**
	 * minIdle.
	 *
	 * @param   minIdle    the minIdle to set
	 * 
	 */
	public void setMinIdle(int minIdle) {
		this.minIdle = minIdle;
	}
	/**
	 * maxIdle.
	 *
	 * @return  the maxIdle
	 * 
	 */
	public int getMaxIdle() {
		return maxIdle;
	}
	/**
	 * maxIdle.
	 *
	 * @param   maxIdle    the maxIdle to set
	 * 
	 */
	public void setMaxIdle(int maxIdle) {
		this.maxIdle = maxIdle;
	}
	/**
	 * maxWait.
	 *
	 * @return  the maxWait
	 * 
	 */
	public int getMaxWait() {
		return maxWait;
	}
	/**
	 * maxWait.
	 *
	 * @param   maxWait    the maxWait to set
	 * 
	 */
	public void setMaxWait(int maxWait) {
		this.maxWait = maxWait;
	}
	/**
	 * removeAbandoned.
	 *
	 * @return  the removeAbandoned
	 * 
	 */
	public boolean isRemoveAbandoned() {
		return removeAbandoned;
	}
	/**
	 * removeAbandoned.
	 *
	 * @param   removeAbandoned    the removeAbandoned to set
	 * 
	 */
	public void setRemoveAbandoned(boolean removeAbandoned) {
		this.removeAbandoned = removeAbandoned;
	}
	/**
	 * removeAbandonedTimeout.
	 *
	 * @return  the removeAbandonedTimeout
	 * 
	 */
	public int getRemoveAbandonedTimeout() {
		return removeAbandonedTimeout;
	}
	/**
	 * removeAbandonedTimeout.
	 *
	 * @param   removeAbandonedTimeout    the removeAbandonedTimeout to set
	 * 
	 */
	public void setRemoveAbandonedTimeout(int removeAbandonedTimeout) {
		this.removeAbandonedTimeout = removeAbandonedTimeout;
	}
	/**
	 * timeBetweenEvictionRunsMillis.
	 *
	 * @return  the timeBetweenEvictionRunsMillis
	 * 
	 */
	public int getTimeBetweenEvictionRunsMillis() {
		return timeBetweenEvictionRunsMillis;
	}
	/**
	 * timeBetweenEvictionRunsMillis.
	 *
	 * @param   timeBetweenEvictionRunsMillis    the timeBetweenEvictionRunsMillis to set
	 * 
	 */
	public void setTimeBetweenEvictionRunsMillis(int timeBetweenEvictionRunsMillis) {
		this.timeBetweenEvictionRunsMillis = timeBetweenEvictionRunsMillis;
	}
	/**
	 * minEvictableIdleTimeMillis.
	 *
	 * @return  the minEvictableIdleTimeMillis
	 * 
	 */
	public int getMinEvictableIdleTimeMillis() {
		return minEvictableIdleTimeMillis;
	}
	/**
	 * minEvictableIdleTimeMillis.
	 *
	 * @param   minEvictableIdleTimeMillis    the minEvictableIdleTimeMillis to set
	 * 
	 */
	public void setMinEvictableIdleTimeMillis(int minEvictableIdleTimeMillis) {
		this.minEvictableIdleTimeMillis = minEvictableIdleTimeMillis;
	}
	/**
	 * validationQuery.
	 *
	 * @return  the validationQuery
	 * 
	 */
	public String getValidationQuery() {
		return validationQuery;
	}
	/**
	 * validationQuery.
	 *
	 * @param   validationQuery    the validationQuery to set
	 * 
	 */
	public void setValidationQuery(String validationQuery) {
		this.validationQuery = validationQuery;
	}
	/**
	 * testWhileIdle.
	 *
	 * @return  the testWhileIdle
	 * 
	 */
	public boolean isTestWhileIdle() {
		return testWhileIdle;
	}
	/**
	 * testWhileIdle.
	 *
	 * @param   testWhileIdle    the testWhileIdle to set
	 * 
	 */
	public void setTestWhileIdle(boolean testWhileIdle) {
		this.testWhileIdle = testWhileIdle;
	}
	/**
	 * testOnBorrow.
	 *
	 * @return  the testOnBorrow
	 * 
	 */
	public boolean isTestOnBorrow() {
		return testOnBorrow;
	}
	/**
	 * testOnBorrow.
	 *
	 * @param   testOnBorrow    the testOnBorrow to set
	 * 
	 */
	public void setTestOnBorrow(boolean testOnBorrow) {
		this.testOnBorrow = testOnBorrow;
	}
	/**
	 * testOnReturn.
	 *
	 * @return  the testOnReturn
	 * 
	 */
	public boolean isTestOnReturn() {
		return testOnReturn;
	}
	/**
	 * testOnReturn.
	 *
	 * @param   testOnReturn    the testOnReturn to set
	 * 
	 */
	public void setTestOnReturn(boolean testOnReturn) {
		this.testOnReturn = testOnReturn;
	}
	/**
	 * poolPreparedStatements.
	 *
	 * @return  the poolPreparedStatements
	 * 
	 */
	public boolean isPoolPreparedStatements() {
		return poolPreparedStatements;
	}
	/**
	 * poolPreparedStatements.
	 *
	 * @param   poolPreparedStatements    the poolPreparedStatements to set
	 * 
	 */
	public void setPoolPreparedStatements(boolean poolPreparedStatements) {
		this.poolPreparedStatements = poolPreparedStatements;
	}
	/**
	 * maxPoolPreparedStatementPerConnectionSize.
	 *
	 * @return  the maxPoolPreparedStatementPerConnectionSize
	 * 
	 */
	public int getMaxPoolPreparedStatementPerConnectionSize() {
		return maxPoolPreparedStatementPerConnectionSize;
	}
	/**
	 * maxPoolPreparedStatementPerConnectionSize.
	 *
	 * @param   maxPoolPreparedStatementPerConnectionSize    the maxPoolPreparedStatementPerConnectionSize to set
	 * 
	 */
	public void setMaxPoolPreparedStatementPerConnectionSize(int maxPoolPreparedStatementPerConnectionSize) {
		this.maxPoolPreparedStatementPerConnectionSize = maxPoolPreparedStatementPerConnectionSize;
	}
	/**
	 * filters.
	 *
	 * @return  the filters
	 * 
	 */
	public String getFilters() {
		return filters;
	}
	/**
	 * filters.
	 *
	 * @param   filters    the filters to set
	 * 
	 */
	public void setFilters(String filters) {
		this.filters = filters;
	}
}